
pkgname=usbutils
pkgver=010
pkgrel=1
pkgdesc="USB Device Utilities"
arch=('x86_64')
url="http://linux-usb.sourceforge.net/"
license=('GPL')
groups=('base')
depends=('libusb' 'hwids')
source=("https://www.kernel.org/pub/linux/utils/usb/usbutils/${pkgname}-${pkgver}.tar.xz")
sha256sums=('61c7364bb4986fb05e5067e4ac5585b1299b664c57f761caecd2e9e724794a19')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr --datadir=/usr/share/hwdata --disable-zlib
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  
  # part of hwids 
  rm -rf ${pkgdir}/usr/{share/hwdata,sbin}
}

